#include "ui_setting.h"
#include "ui_settingLogic.h"
#include "LL_General.h"
#include "LL_Handler.h"
#include "LL_Linked_List.h"
#include "LL_Timer.h"
#include "LL_ButtonEx.h"


void ui_settingInit(void)
{
    //背景
    llBackgroundQuickCreate(ID_BACKGROUND,240,240,true,RGB888(0xf1f1f1),0);

    //按键
    llButtonQuickCreate(ID_BUTTON_0,ID_BACKGROUND,76,76,80,30,(uint8_t *)"Button",FONT_LIB_C_SIMSUN_9,RGB888(0x000000),RGB888(0x55aaff),RGB888(0x55aaff),0xFFFFFFFF,0xFFFFFFFF,BUTTON_DIS_TYPE_COLOR,false);
    nButtonSetJumpPage(ID_BUTTON_0,1);
    nButtonSetEnabled(ID_BUTTON_0,true);
    nButtonSetCheckable(ID_BUTTON_0,false);
    nButtonSetKeyValue(ID_BUTTON_0,0);

    //按键
    llButtonQuickCreate(ID_BUTTON_1,ID_BACKGROUND,76,126,80,30,(uint8_t *)"Button",FONT_LIB_C_SIMSUN_9,RGB888(0x000000),RGB888(0x55aaff),RGB888(0x55aaff),0xFFFFFFFF,0xFFFFFFFF,BUTTON_DIS_TYPE_COLOR,false);
    nButtonSetJumpPage(ID_BUTTON_1,0);
    nButtonSetEnabled(ID_BUTTON_1,true);
    nButtonSetCheckable(ID_BUTTON_1,false);
    nButtonSetKeyValue(ID_BUTTON_1,0);

    ui_settingLogicInit();
}

void ui_settingLoop(void)
{
    ui_settingLogicLoop();
}

void ui_settingQuit(void)
{
    ui_settingLogicQuit();
}

